/**
 * 用户相关类型定义
 */

// 用户基本信息
export interface UserInfo {
  id: string
  username: string
  nickname?: string
  avatar?: string
  // phone?: string // 注释掉手机号字段
  email?: string
  vipExpire?: string
}

// 用户登录状态
export interface UserState {
  userInfo: UserInfo | null
  token: string | null
  isLoggedIn: boolean
}

// 用户统计信息
export interface UserStats {
  totalReadBooks: number
  totalPunchDays: number
  currentStreakDays: number
  totalReadingTime: number
  averageReadingTime: number
  favoriteCategory?: string
  readingLevel: number
}

// 用户设置
export interface UserSettings {
  autoPlay: boolean
  playSpeed: number
  nightMode: boolean
  fontSize: number
  language: 'zh' | 'en'
  notifications: {
    reading: boolean
    punch: boolean
    system: boolean
  }
}
